package com.friends.digitpic.service.service.impl;

import javax.annotation.Resource;

import org.jeecgframework.minidao.pojo.MiniDaoPage;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.stereotype.Component;
import com.friends.digitpic.service.dao.PicgroupDao;
import com.friends.digitpic.service.entity.PicgroupEntity;
import com.friends.digitpic.service.service.PicgroupService;

/**
 * 描述：图集
 * @author: jiangge xia
 * @since：2018年09月15日 22时44分21秒 星期六 
 * @version:1.0
 */

@Transactional
@Component
public class PicgroupServiceImpl implements PicgroupService {

	@Resource(name = "picgroupDao")
	private PicgroupDao picgroupDao;


	public PicgroupEntity getPicgroup(String picgroupid) {
		return picgroupDao.get(picgroupid);
	}

	public int updatePicgroup(PicgroupEntity picgroup) {
		return picgroupDao.update(picgroup);
	}

	public void insertPicgroup(PicgroupEntity picgroup) {
		picgroupDao.insert(picgroup);
		
	}

	public MiniDaoPage<PicgroupEntity> getPicgroupAll(PicgroupEntity picgroup, int page, int rows) {
		return picgroupDao.getAll(picgroup, page, rows);
	}

	public void deletePicgroup(PicgroupEntity picgroup) {
		picgroupDao.delete(picgroup);
		
	}
}
